package com.xinghen.ace.auth.mapper;

import com.xinghen.ace.auth.model.entity.Client;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @author xinghen
 * @ClassName: ClientMapper
 * @Package: com.xinghen.ace.auth.mapper
 * @Description client mapper
 * @create 2018/5/4 15:35
 */
public interface ClientMapper extends Mapper<Client> {

    /**
     * 获取被允许的客户端列表
     *
     * @param serviceId
     * @return
     */
    List<String> selectAllowedClient(String serviceId);

    /**
     * @param clientId
     * @return
     */
    List<Client> selectAuthorityServiceInfo(int clientId);
}